import java.util.LinkedHashMap;
import java.util.Map;

/**
 * Created with IntelliJ IDEA.
 * Description:
 * User: wangxin
 * Date: 2024-12-24
 * Time: 20:31
 */
public class Test {
    public static void main(String[] args) {
       MyLUCCache map = new MyLUCCache(3);
        map.put(1,11);
        map.put(2,22);
        map.put(3,33);
        map.put(4,44);
        System.out.println(map);
        map.get(1);
        map.get(2);
        System.out.println(map);
    }
    public static void main1(String[] args) {
        Map<Integer,String> map = new LinkedHashMap<>(16,0.75f,true);
        map.put(1,"a");
        map.put(2,"b");
        map.put(3,"c");
        map.put(4,"d");
        System.out.println(map);
        map.get(1);
        map.get(2);
        System.out.println(map);
    }
}
